package com.yunyao.dao.service.bamu;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunyao.dao.model.BamuContractMaterial;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 合同材料表 服务类
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
public interface IBamuContractMaterialService extends IService<BamuContractMaterial> {
    /**
     * 根据合同id获取合同材料列表
     * @param contractId
     * @return
     */
    List<BamuContractMaterial> listByContractId(String contractId);

    void deletedByContractId(String contractId);

    BigDecimal getTotalNumByContractId(String contractId);

    BigDecimal getTotalPriceByContractId(String contractId);
}
